class RecordDataController < ApplicationController

 def index
    session[:index_page] = params[:page] == nil ? nil : params[:page]
    @filterrific = initialize_filterrific(RecordData,params[:filterrific]) or return
    @record_data = @filterrific.find.page(params[:page]).order(created_at: :desc)
 end

 def destroy
     ref = RecordData.find(params[:id])
     ref.status="已审核"
     ref.check_person=session[:login]
     ref.save
     notice='审核成功'  
     redirect_to  record_data_path, notice: notice
 end
 



end
